﻿@using Viettel.VOFFICE.Web.Models
@{ var rootNode = ViewBag.Nodes as SystemMenuModel;}
<ul>
    @foreach (var item in rootNode.Children)
    {
        if (item != null)
        {
            <li><a href="javascript:void(0);" class="folder" data-node-id="@item.id" data-id="@item.id">@item.Name</a>
            @if (item.Children.Any())
            {
                @Html.Partial("../Common/SystemMenuItem", item)
            }
        </li>
        }
    
    }

</ul>
<script type="text/javascript">
    ddsmoothmenu.init({
        mainmenuid: "navigationAdmin", //menu DIV id
        orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
        classname: 'ddsmoothmenu', //class added to menu's outer DIV
        //customtheme: ["#1c5a80", "#18374a"],
        contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
    })
</script>